/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.longview.io.modules.livestockinfo.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.longview.io.modules.grassinfo.entity.UserGrasslandInfo;
import com.longview.io.modules.sys.entity.Stock;
import com.longview.io.modules.userinfo.entity.UserInfo;
import com.longview.io.common.persistence.DataEntity;
import com.longview.io.common.utils.excel.annotation.ExcelField;

/**
 * 用户牲畜信息Entity
 * @author zf
 * @version 2018-04-23
 */
public class UserLivestockInfo extends DataEntity<UserLivestockInfo> {
	
	private static final long serialVersionUID = 1L;
	private String livestockType;		// 家畜类型
	private String count;		// 数量
	private UserInfo userinfo;		// userinfo_id
	private String img;		// 家畜图片
	private String remark;		// remark
	private String sumCount;
	private String userName;
	//2018-10-22 新增加一行  草场信息
	private UserGrasslandInfo grasslandInfo;		// grasslandInfo_id
	private String livestockTypeName;		// 家畜类型
	public String getLivestockTypeName() {
		return livestockTypeName;
	}

	public void setLivestockTypeName(String livestockTypeName) {
		this.livestockTypeName = livestockTypeName;
	}

	private List<Stock> stockList = Lists.newArrayList(); // 拥有菜单列表
	public String getSumCount() {
		return sumCount;
	}

	public void setSumCount(String sumCount) {
		this.sumCount = sumCount;
	}

	
	public List<Stock> getStockList() {
		return stockList;
	}

	public void setStockList(List<Stock> stockList) {
		this.stockList = stockList;
	}

	//private List<>
	public UserLivestockInfo() {
		super();
	}

	public UserLivestockInfo(String id){
		super(id);
	}

	@ExcelField(title="姓名", align=2, sort=25)
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@Length(min=0, max=11, message="家畜类型长度必须介于 0 和 11 之间") 
	@ExcelField(title="家畜类型", align=2, sort=25)
	public String getLivestockType() {
		return livestockType;
	}

	public void setLivestockType(String livestockType) {
		this.livestockType = livestockType;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	@ExcelField(title="数量", align=2, sort=25)
	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}
	
	public UserInfo getUserinfo() {
		return userinfo;
	}

	public void setUserinfo(UserInfo userinfo) {
		this.userinfo = userinfo;
	}
	//2018-10-22 新增加 草场信息 开始
	public UserGrasslandInfo getuserGrasslandInfo() {
		return grasslandInfo;
	}

	public void setUserGrasslandInfo(UserGrasslandInfo grasslandInfo) {
		this.grasslandInfo = grasslandInfo;
	}
	//2018-10-22 新增加 草场信息 结束
	
	@Length(min=0, max=150, message="家畜图片长度必须介于 0 和 150 之间")
	@ExcelField(title="家畜图片", align=2, sort=25)
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	@Length(min=0, max=60, message="remark长度必须介于 0 和 60 之间")
	@ExcelField(title="备注", align=2, sort=25)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}